package com.liuyi.netty.im.test.im.listeners;

import com.liuyi.netty.im.test.im.client.ChannelStorage;
import io.netty.channel.Channel;

/**
 * 连接关闭
 * @author Mr.Fmy
 * @since 2022/1/19
 */
public class ImCloseListener extends ImAbstractListener<Void>{

    @Override
    public void handler0(Channel channel, Void data) {
        ChannelStorage.remove(channel);
    }

    @Override
    public Void convert(Object data) {
        return null;
    }
}
